#pragma once

#include <QTcpSocket>

class Server;

// 客户端
class Client: public QObject {
    Q_OBJECT

    private: Server* mServer;       // 服务器
    private: QTcpSocket* mSocket;   // 套接字

    public: Client(QTcpSocket*, Server*);
    public: ~Client();
    private slots: void onReceive();
    public: void write(const void*, qint64);
};
